const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      "/api": { //代理名称
        target: "http://8.137.35.74:8080", //目标服务器地址
        changeOrigin: true,//允许跨域
        ws: true,//允许websocket协议
        pathRewrite: { //路径重新
          "^/api": ""
        }
      },
    }

  }
})
